package com.tisumoon.data.api;

import com.google.gson.reflect.TypeToken;
import com.tisumoon.data.abs.AbsData;

/**
<pre>
{
"result": "login_qq",
"type": "new",
"token": "Y1mVm/PgGXEk93XP9f4/6cGzj+bc09ltOOOnoM3KZAeljxEZJ6UjYsA8JnASg9u4d8IR1uFokwY5mAnMZ38vEw=="
"info": {
	"uid": 1000000001,
	"name": "小米饭",
	"sex": 1,
	"head":
	"http://api.yuchats.com/upload/image/2014/07/31/20140731154856_18826.jpeg"
},
}
</pre>
 */
public class LoginWithQQ extends AbsData<LoginWithQQ> {
	public static final String TYPE_QQ_LOGIN		= "login_qq";

	public String type;
	public String token;
	public Info info;

	public static class Info {
		public long uid;
		public String name;
		public int sex;
		public String head;
	}

	@Override
	protected TypeToken<LoginWithQQ> getTypeToken() {
		return new TypeToken<LoginWithQQ>(){};
	}

	@Override
	protected String[] typeValues() {
		return new String[] {TYPE_QQ_LOGIN};
	}
}
